package com.zhang.springcloud.domain;


import lombok.Data;

@Data
public class Storage {

    private Long id;

    /**
     * 产品id
     */
    private Long product_id;

    /**
     * 总库存
     */
    private Integer total;

    /**
     * 已用库存
     */
    private Integer used;

    /**
     * 剩余库存
     */
    private Integer residue;

    public Storage() {
    }

    public Storage(Long id, Long product_id, Integer total, Integer used, Integer residue) {
        this.id = id;
        this.product_id = product_id;
        this.total = total;
        this.used = used;
        this.residue = residue;
    }
}